package nl.vu.few.ibivu.biomodels.client.ui.cytoscapeweb;

import com.google.gwt.core.client.JavaScriptObject;

public class CytoscapeWebPoint extends JavaScriptObject {
	protected CytoscapeWebPoint() {}
	
	public static final native CytoscapeWebPoint create(CytoscapeWebNode node) /*-{
		return {id: node.data.id, x: node.x, y: node.y};
	}-*/;
	
	public static final native CytoscapeWebPoint create(String id, int x, int y) /*-{
		return {id: id, x: x, y: y};
	}-*/;
	
	public final native String getId() /*-{
		return this.id;
	}-*/;
	
	public final native int getX() /*-{
		return this.x;
	}-*/;
	
	public final native int getY() /*-{
		return this.y;
	}-*/;
}
